package me.hl.guava.reflection;

import me.hl.proxy.*;
import org.junit.Test;

/**
 * Created by pulangke on 2017/6/5.
 */
public class ReflectionTest {

    @Test
    public void reflectionTest() throws Exception {
        Class interfaces = MyOO.class;
        MyFilter[] myFilters = {new BigThanFiveFilter(), new BigThanOneFilter(), new BigThanTenFilter()};
        MyOO myOO = (MyOO) InvocationHandlerChain.invokeChainGuava(myFilters, interfaces, MyNumber.class);
        myOO.getNumber();
        myOO.setNumber(1);
        myOO.setNumber(11);
    }

}
